package org.llc.oauthclient.client;

import org.llc.common.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 远程调用用户认证服务
 * @author llc
 * @date 2019/12/17 16:31
 * @since 1.0.0
 */
@FeignClient(value = "user-oauth-service")
public interface UserOauthClient {

    /**
     * 授权码模式获取token
     * @return com.alibaba.fastjson.JSONObject
     * @author llc
     * @date 2020/5/6 17:05
     */
    @RequestMapping(value = "/app/v1/user/unAuthenticated/getTokenByAuthorizationCode", method = RequestMethod.POST,consumes = "application/json")
    Result getTokenByClientAuthorizationCode(@RequestBody ReqGetTokenByAuthorizationCodeDTO reqGetTokenByAuthorizationCodeDto);
}
